<!DOCTYPE html>
<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><title>Package index • EJAM</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><script src="../deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link href="../deps/bootstrap-5.3.1/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.3.1/bootstrap.bundle.min.js"></script><link href="../deps/font-awesome-6.4.2/css/all.min.css" rel="stylesheet"><link href="../deps/font-awesome-6.4.2/css/v4-shims.min.css" rel="stylesheet"><script src="../deps/headroom-0.11.0/headroom.min.js"></script><script src="../deps/headroom-0.11.0/jQuery.headroom.min.js"></script><script src="../deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js"></script><script src="../deps/clipboard.js-2.0.11/clipboard.min.js"></script><script src="../deps/search-1.0.0/autocomplete.jquery.min.js"></script><script src="../deps/search-1.0.0/fuse.min.js"></script><script src="../deps/search-1.0.0/mark.min.js"></script><!-- pkgdown --><script src="../pkgdown.js"></script><meta property="og:title" content="Package index"><meta property="og:image" content="https://usepa.github.io/EJAM/logo.svg"></head><body>
    <a href="#main" class="visually-hidden-focusable">Skip to contents</a>


    <nav class="navbar navbar-expand-lg fixed-top bg-light" data-bs-theme="light" aria-label="Site navigation"><div class="container">

    <a class="navbar-brand me-2" href="../index.html">EJAM</a>

    <small class="nav-text text-warning me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Released version">2.32.0</small>


    <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
      <span class="navbar-toggler-icon"></span>
    </button>

    <div id="navbar" class="collapse navbar-collapse ms-3">
      <ul class="navbar-nav me-auto"><li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown">
  <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
  <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><hr class="dropdown-divider"></li>
    <li><h6 class="dropdown-header" data-toc-skip>Overview for EJAM Users</h6></li>
    <li><a class="dropdown-item" href="../articles/0_whatis.html">What is EJAM?</a></li>
    <li><a class="dropdown-item" href="../articles/0_webapp.html">Accessing the Web App</a></li>
    <li><hr class="dropdown-divider"></li>
    <li><h6 class="dropdown-header" data-toc-skip>For analysts using R</h6></li>
    <li><a class="dropdown-item" href="../articles/1_installing.html">Installing the EJAM R package</a></li>
    <li><a class="dropdown-item" href="../articles/2_quickstart.html">Quick Start Guide</a></li>
    <li><a class="dropdown-item" href="../articles/3_analyzing.html">Using EJAM for Analysis in R</a></li>
    <li><a class="dropdown-item" href="../articles/4_advanced.html">Advanced Features</a></li>
  </ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>
      </ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search">
 <input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="../search.json"></form></li>
      </ul></div>


  </div>
</nav><div class="container template-reference-index">
<div class="row">
  <main id="main" class="col-md-9"><div class="page-header">
      <img src="../logo.svg" class="logo" alt=""><h1>Package index</h1>
    </div>

    <div class="section level2">
      <h2 id="key-functions-for-starting-an-analysis">Key Functions for Starting an Analysis<a class="anchor" aria-label="anchor" href="#key-functions-for-starting-an-analysis"></a></h2>

      <div class="section-desc"><p>Starting the Analysis</p></div>


    </div><div class="section level2">




      <dl><dt>

          <code><a href="EJAM.html">EJAM</a></code> <code><a href="EJAM.html">EJAM-package</a></code>

        </dt>
        <dd>EJAM - Environmental Justice Analysis Multisite tool</dd>
      </dl><dl><dt>

          <code><a href="app_run_EJAM.html">app_run_EJAM()</a></code>

        </dt>
        <dd>Launch EJAM as shiny web app</dd>
      </dl><dl><dt>

          <code><a href="ejamit.html">ejamit()</a></code>

        </dt>
        <dd>Get an EJ analysis (demographic and environmental indicators) in or near a list of locations</dd>
      </dl><dl><dt>

          <code><a href="ejamit_compare_distances.html">ejamit_compare_distances()</a></code>

        </dt>
        <dd>Compare EJAM results overall for more than one radius Run ejamit() once per radius, get a summary table with a row per radius</dd>
      </dl><dl><dt>

          <code><a href="ejamit_compare_types_of_places.html">ejamit_compare_types_of_places()</a></code>

        </dt>
        <dd>Compare subsets (types) of places that are all from one list</dd>
      </dl><dl><dt>

          <code><a href="app_run_EJAMejscreenapi.html">app_run_EJAMejscreenapi()</a></code>

        </dt>
        <dd>Launch EJAM ejscreenapi web app in RStudio</dd>
      </dl><dl><dt>

          <code><a href="ejscreenit_for_ejam.html">ejscreenit_for_ejam()</a></code>

        </dt>
        <dd>Get EJScreen results directly from EJScreen servers via their API</dd>
      </dl></div><div class="section level2">
      <h2 id="key-functions-for-viewing-results">Key Functions for Viewing Results<a class="anchor" aria-label="anchor" href="#key-functions-for-viewing-results"></a></h2>

      <div class="section-desc"><p>Viewing the Results</p></div>


    </div><div class="section level2">




      <dl><dt>

          <code><a href="ejam2excel.html">ejam2excel()</a></code>

        </dt>
        <dd>Save EJAM results in a spreadsheet</dd>
      </dl><dl><dt>

          <code><a href="ejam2report.html">ejam2report()</a></code>

        </dt>
        <dd>View HTML Report on EJAM Results (Overall or at 1 Site)</dd>
      </dl><dl><dt>

          <code><a href="ejam2map.html">ejam2map()</a></code>

        </dt>
        <dd>Show EJAM results as a map of points</dd>
      </dl><dl><dt>

          <code><a href="ejam2barplot.html">ejam2barplot()</a></code>

        </dt>
        <dd>Barplot of ratios of demographic (or other) scores to averages - simpler syntax</dd>
      </dl><dl><dt>

          <code><a href="ejam2barplot_sites.html">ejam2barplot_sites()</a></code>

        </dt>
        <dd>Barplot comparing sites on 1 indicator, based on full output of ejamit() easy high-level function for getting a quick look at top few sites</dd>
      </dl><dl><dt>

          <code><a href="ejam2barplot_distances.html">ejam2barplot_distances()</a></code>

        </dt>
        <dd>Barplot comparing ejamit_compare_distances() results for more than one radius</dd>
      </dl><dl><dt>

          <code><a href="ejam2barplot_sitegroups.html">ejam2barplot_sitegroups()</a></code>

        </dt>
        <dd>Barplot comparing groups of sites on 1 indicator, for output of ejamit_compare_types_of_places() easy high-level function for getting a quick look at top few groups of sites</dd>
      </dl><dl><dt>

          <code><a href="ejam2ratios.html">ejam2ratios()</a></code>

        </dt>
        <dd>Quick view of summary stats by type of stat, but lacks rounding specific to each type, etc.</dd>
      </dl><dl><dt>

          <code><a href="ejam2means.html">ejam2means()</a></code>

        </dt>
        <dd>ejam2means - quick look at averages, via ejamit() results</dd>
      </dl><dl><dt>

          <code><a href="ejam2tableviewer.html">ejam2tableviewer()</a></code>

        </dt>
        <dd>See ejamit()$results_bysite in interactive table in RStudio viewer pane</dd>
      </dl><dl><dt>

          <code><a href="ejam2table_tall.html">ejam2table_tall()</a></code>

        </dt>
        <dd>Simple quick look at results of ejamit() in RStudio console</dd>
      </dl><dl><dt>

          <code><a href="ejam2shapefile.html">ejam2shapefile()</a></code>

        </dt>
        <dd>DRAFT - export EJAM results as shapefile/geojson/kml for use in ArcPro, EJScreen, etc.</dd>
      </dl></div><div class="section level2">
      <h2 id="specify-points-by-lat-lon">Specify Points by Lat/Lon<a class="anchor" aria-label="anchor" href="#specify-points-by-lat-lon"></a></h2>

      <div class="section-desc"><p>Utilities for working with latitude/ longitude or address</p></div>


    </div><div class="section level2">




      <dl><dt>

          <code><a href="sitepoints_from_any.html">sitepoints_from_any()</a></code>

        </dt>
        <dd>Get lat/lon flexibly - from file, data.frame, data.table, or lat/lon vectors Like latlon_from_anything() but this also adds a ejam_uniq_id column</dd>
      </dl><dl><dt>

          <code><a href="latlon_from_anything.html">latlon_from_anything()</a></code>

        </dt>
        <dd>Get lat/lon flexibly - from file, data.frame, data.table, or lat/lon vectors</dd>
      </dl><dl><dt>

          <code><a href="latlon_from_address_table.html">latlon_from_address_table()</a></code>

        </dt>
        <dd>get lat,lon from table that contains USPS addresses</dd>
      </dl><dl><dt>

          <code><a href="latlon_from_address.html">latlon_from_address()</a></code>

        </dt>
        <dd>geocode, but only if AOI package is installed and attached and what it imports like tidygeocoder etc.</dd>
      </dl><dl><dt>

          <code><a href="latlon_is.valid.html">latlon_is.valid()</a></code>

        </dt>
        <dd>Check if lat lon are OK – validate latitudes and longitudes</dd>
      </dl><dl><dt>

          <code><a href="lat_alias.html">lat_alias</a></code>

        </dt>
        <dd>lat_alias, lon_alias (DATA) Synonyms for lat and lon</dd>
      </dl><dl><dt>

          <code><a href="islandareas.html">islandareas</a></code>

        </dt>
        <dd>islandareas (DATA) table, bounds info on lat lon of US Island Areas</dd>
      </dl><dl><dt>

          <code><a href="address_from_table.html">address_from_table()</a></code>

        </dt>
        <dd>get USPS addresses from a table of that info</dd>
      </dl></div><div class="section level2">
      <h2 id="specify-facilities-by-id">Specify Facilities by ID<a class="anchor" aria-label="anchor" href="#specify-facilities-by-id"></a></h2>




    </div><div class="section level2">




      <dl><dt>

          <code><a href="latlon_from_regid.html">latlon_from_regid()</a></code>

        </dt>
        <dd>Get lat lon (and NAICS) via Facility Registry ID</dd>
      </dl><dl><dt>

          <code><a href="frs_from_regid.html">frs_from_regid()</a></code>

        </dt>
        <dd>Use registry ID to see FRS Facility Registry Service data on those EPA-regulated sites</dd>
      </dl><dl><dt>

          <code><a href="latlon_from_programid.html">latlon_from_programid()</a></code>

        </dt>
        <dd>Get lat lon, Registry ID, and NAICS, for given FRS Program System ID</dd>
      </dl><dl><dt>

          <code><a href="frs_from_programid.html">frs_from_programid()</a></code>

        </dt>
        <dd>Use EPA Program ID to see FRS Facility Registry Service data on those EPA-regulated sites</dd>
      </dl><dl><dt>

          <code><a href="frs_from_sitename.html">frs_from_sitename()</a></code>

        </dt>
        <dd>Use site name text search to see FRS Facility Registry Service data on those EPA-regulated sites</dd>
      </dl><dl><dt>

          <code><a href="frs.html">frs</a></code>

        </dt>
        <dd>frs (DATA) EPA Facility Registry Service table of regulated sites</dd>
      </dl><dl><dt>

          <code><a href="frs_by_programid.html">frs_by_programid</a></code>

        </dt>
        <dd>frs_by_programid (DATA) data.table of Program System ID code(s) for each EPA-regulated site in the Facility Registry Service</dd>
      </dl></div><div class="section level2">
      <h2 id="specify-facility-type">Specify Facility Type<a class="anchor" aria-label="anchor" href="#specify-facility-type"></a></h2>

      <div class="section-desc"><p>NAICS, SIC, MACT, or EPA Program</p></div>


    </div><div class="section level2">

      <h3 id="choosing-naics-sic-industry-codes">Choosing NAICS/SIC Industry Codes<a class="anchor" aria-label="anchor" href="#choosing-naics-sic-industry-codes"></a></h3>



    </div><div class="section level2">




      <dl><dt>

          <code><a href="naics_from_any.html">naics_from_any()</a></code>

        </dt>
        <dd>NAICS - General way to search for industry names and NAICS codes</dd>
      </dl><dl><dt>

          <code><a href="sic_from_any.html">sic_from_any()</a></code>

        </dt>
        <dd>General way to search for industry names and NAICS codes</dd>
      </dl><dl><dt>

          <code><a href="naics_is.valid.html">naics_is.valid()</a></code>

        </dt>
        <dd>validate industry NAICS codes</dd>
      </dl><dl><dt>

          <code><a href="naics_categories.html">naics_categories()</a></code>

        </dt>
        <dd>NAICS - See the names of industrial categories and their NAICS code</dd>
      </dl><dl><dt>

          <code><a href="sic_categories.html">sic_categories()</a></code>

        </dt>
        <dd>See the names of SIC industrial categories and their codes</dd>
      </dl><dl><dt>

          <code><a href="naics_url_of_code.html">naics_url_of_code()</a></code>

        </dt>
        <dd>NAICS - Get URL for page with info about industry sector(s) by NAICS</dd>
      </dl><dl><dt>

          <code><a href="naics_findwebscrape.html">naics_findwebscrape()</a></code>

        </dt>
        <dd>for query term, show list of roughly matching NAICS, scraped from web</dd>
      </dl><dl><dt>

          <code><a href="naics_subcodes_from_code.html">naics_subcodes_from_code()</a></code>

        </dt>
        <dd>NAICS - find subcategories of the given overall NAICS industry code(s)</dd>
      </dl><dl><dt>

          <code><a href="sic_subcodes_from_code.html">sic_subcodes_from_code()</a></code>

        </dt>
        <dd>Find subcategories of the given overall SIC industry code(s)</dd>
      </dl><dl><dt>

          <code><a href="naics2children.html">naics2children()</a></code>

        </dt>
        <dd>NAICS - query NAICS codes and also see all children (subcategories) of any of those</dd>
      </dl><dl><dt>

          <code><a href="sic_from_name.html">sic_from_name()</a></code>

        </dt>
        <dd>Search for industry names and SIC codes by query string</dd>
      </dl><dl><dt>

          <code><a href="sic_from_code.html">sic_from_code()</a></code>

        </dt>
        <dd>Search for industry names by SIC code(s), 4 digits each</dd>
      </dl></div><div class="section level2">

      <h3 id="using-naics-sic-industry-codes">Using NAICS/SIC Industry Codes<a class="anchor" aria-label="anchor" href="#using-naics-sic-industry-codes"></a></h3>



    </div><div class="section level2">




      <dl><dt>

          <code><a href="latlon_from_naics.html">latlon_from_naics()</a></code>

        </dt>
        <dd>Find EPA-regulated facilities in FRS by NAICS code (industrial category)</dd>
      </dl><dl><dt>

          <code><a href="latlon_from_sic.html">latlon_from_sic()</a></code>

        </dt>
        <dd>Find EPA-regulated facilities in FRS by SIC code (industrial category)</dd>
      </dl><dl><dt>

          <code><a href="regid_from_naics.html">regid_from_naics()</a></code>

        </dt>
        <dd>Find registry ids of EPA-regulated facilities in FRS by NAICS code (industrial category) Like latlon_from_naics() but returns only regid</dd>
      </dl><dl><dt>

          <code><a href="frs_from_naics.html">frs_from_naics()</a></code>

        </dt>
        <dd>Use NAICS code or industry title text search to see FRS Facility Registry Service data on those EPA-regulated sites</dd>
      </dl><dl><dt>

          <code><a href="frs_from_sic.html">frs_from_sic()</a></code>

        </dt>
        <dd>Use SIC code or industry title text search to see FRS Facility Registry Service data on those EPA-regulated sites</dd>
      </dl></div><div class="section level2">

      <h3 id="naics-sic-datasets">NAICS/SIC datasets<a class="anchor" aria-label="anchor" href="#naics-sic-datasets"></a></h3>



    </div><div class="section level2">




      <dl><dt>

          <code><a href="naics_counts.html">naics_counts</a></code>

        </dt>
        <dd>naics_counts (DATA) data.frame with regulated facility counts for each industry code</dd>
      </dl><dl><dt>

          <code><a href="NAICS.html">NAICS</a></code>

        </dt>
        <dd>NAICS (DATA) named list of all NAICS code numbers and industry name for each</dd>
      </dl><dl><dt>

          <code><a href="SIC.html">SIC</a></code>

        </dt>
        <dd>SIC (DATA) named list of all SIC code numbers and category name for each</dd>
      </dl><dl><dt>

          <code><a href="naicstable.html">naicstable</a></code>

        </dt>
        <dd>naicstable (DATA) data.table of NAICS code(s) and industry names for each EPA-regulated site</dd>
      </dl><dl><dt>

          <code><a href="sictable.html">sictable</a></code>

        </dt>
        <dd>sictable (DATA) data.table of SIC code(s) and industry names for each EPA-regulated site</dd>
      </dl><dl><dt>

          <code><a href="frs_by_naics.html">frs_by_naics</a></code>

        </dt>
        <dd>frs_by_naics (DATA) data.table of NAICS code(s) for each EPA-regulated site in Facility Registry Service</dd>
      </dl><dl><dt>

          <code><a href="frs_by_sic.html">frs_by_sic</a></code>

        </dt>
        <dd>frs_by_sic (DATA) data.table of SIC code(s) for each EPA-regulated site in Facility Registry Service</dd>
      </dl></div><div class="section level2">

      <h3 id="epa-programs">EPA Programs<a class="anchor" aria-label="anchor" href="#epa-programs"></a></h3>



    </div><div class="section level2">




      <dl><dt>

          <code><a href="epa_programs.html">epa_programs</a></code>

        </dt>
        <dd>epa_programs (DATA) named vector with program counts</dd>
      </dl><dl><dt>

          <code><a href="epa_programs_defined.html">epa_programs_defined</a></code>

        </dt>
        <dd>Full names and definitions for acronyms of EPA programs in Facility Registry Services (FRS)</dd>
      </dl><dl><dt>

          <code><a href="latlon_from_program.html">latlon_from_program()</a></code>

        </dt>
        <dd>Get lat lon, Registry ID, and NAICS, for given FRS Program System CATEGORY Find all FRS sites in a program like RCRAINFO, TRIS, or others</dd>
      </dl><dl><dt>

          <code><a href="frsprogramcodes.html">frsprogramcodes</a></code>

        </dt>
        <dd>frsprogramcodes DATA EPA programs listed in Facility Registry Service</dd>
      </dl><dl><dt>

          <code><a href="frs_from_program.html">frs_from_program()</a></code>

        </dt>
        <dd>Use EPA Program acronym like TRIS to see FRS Facility Registry Service data on those EPA-regulated sites</dd>
      </dl></div><div class="section level2">

      <h3 id="mact-categories">MACT Categories<a class="anchor" aria-label="anchor" href="#mact-categories"></a></h3>



    </div><div class="section level2">




      <dl><dt>

          <code><a href="mact_table.html">mact_table</a></code>

        </dt>
        <dd>mact_table (DATA) MACT NESHAP subparts (the code and the description)</dd>
      </dl><dl><dt>

          <code><a href="latlon_from_mactsubpart.html">latlon_from_mactsubpart()</a></code>

        </dt>
        <dd>Get point locations for US EPA-regulated facilities that have sources subject to Maximum Achievable Control Technology (MACT) standards under the Clean Air Act.</dd>
      </dl><dl><dt>

          <code><a href="frs_by_mact.html">frs_by_mact</a></code>

        </dt>
        <dd>frs_by_mact (DATA) MACT NESHAP subpart(s) that each EPA-regulated site is subject to</dd>
      </dl></div><div class="section level2">
      <h2 id="specify-places-by-shapefile">Specify Places by Shapefile<a class="anchor" aria-label="anchor" href="#specify-places-by-shapefile"></a></h2>




    </div><div class="section level2">




      <dl><dt>

          <code><a href="shapefile_from_any.html">shapefile_from_any()</a></code>

        </dt>
        <dd>Read shapefile from any file or folder (trying to infer the format)</dd>
      </dl><dl><dt>

          <code><a href="shapefile_from_folder.html">shapefile_from_folder()</a></code>

        </dt>
        <dd>Read shapefile from a folder</dd>
      </dl><dl><dt>

          <code><a href="shapefile_from_filepaths.html">shapefile_from_filepaths()</a></code>

        </dt>
        <dd>Read shapefile from disk based on the filenames given</dd>
      </dl><dl><dt>

          <code><a href="shapefile_from_zip.html">shapefile_from_zip()</a></code>

        </dt>
        <dd>read zipped .zip that may contain a geodatabase file or .shp file etc.</dd>
      </dl><dl><dt>

          <code><a href="shapefile_from_gdb.html">shapefile_from_gdb()</a></code>

        </dt>
        <dd>read .gdb geodatabase file via sf::st_read()</dd>
      </dl><dl><dt>

          <code><a href="shapefile_from_gdbzip.html">shapefile_from_gdbzip()</a></code>

        </dt>
        <dd>read .zip that contains geodatabase file via unzip and st_read</dd>
      </dl><dl><dt>

          <code><a href="shapefile_filepaths_from_folder.html">shapefile_filepaths_from_folder()</a></code>

        </dt>
        <dd>Get list of valid filenames comprising shapefile including paths</dd>
      </dl><dl><dt>

          <code><a href="shapefile_filepaths_valid.html">shapefile_filepaths_valid()</a></code>

        </dt>
        <dd>Confirm files have ALL the extensions .shp, .shx, .dbf, and .prj</dd>
      </dl><dl><dt>

          <code><a href="shapefile_clean.html">shapefile_clean()</a></code>

        </dt>
        <dd>Drop invalid rows, warn if all invalid, add unique ID, transform (CRS)</dd>
      </dl><dl><dt>

          <code><a href="shapefile_from_sitepoints.html">shapefile_from_sitepoints()</a></code>

        </dt>
        <dd>Convert table of lat,lon points/sites into sf:: shapefile</dd>
      </dl><dl><dt>

          <code><a href="shape_buffered_from_shapefile.html">shape_buffered_from_shapefile()</a></code>

        </dt>
        <dd>shape_buffered_from_shapefile - add buffer around shape</dd>
      </dl><dl><dt>

          <code><a href="shape_buffered_from_shapefile_points.html">shape_buffered_from_shapefile_points()</a></code>

        </dt>
        <dd>shape_buffered_from_shapefile_points - add buffer around shape (points, here)</dd>
      </dl><dl><dt>

          <code><a href="shapefile2blockpoints.html">shapefile2blockpoints()</a></code>

        </dt>
        <dd>Find all Census blocks in a polygon, using internal point of block</dd>
      </dl><dl><dt>

          <code><a href="shapefile2latlon.html">shapefile2latlon()</a></code>

        </dt>
        <dd>Convert shapefile (class sf) of points to data.table of lat, lon columns</dd>
      </dl><dl><dt>

          <code><a href="shapes_from_fips.html">shapes_from_fips()</a></code>

        </dt>
        <dd>Download shapefiles based on FIPS codes of States, Counties, Cities/CDPs, Tracts, or Blockgroups</dd>
      </dl><dl><dt>

          <code><a href="shapes_counties_from_countyfips.html">shapes_counties_from_countyfips()</a></code>

        </dt>
        <dd>Get Counties boundaries via API, to map them</dd>
      </dl><dl><dt>

          <code><a href="shapes_blockgroups_from_bgfips.html">shapes_blockgroups_from_bgfips()</a></code>

        </dt>
        <dd>Get blockgroups boundaries, via API, to map them</dd>
      </dl><dl><dt>

          <code><a href="shape2zip.html">shape2zip()</a></code>

        </dt>
        <dd>Save spatial data.frame as shapefile.zip</dd>
      </dl><dl><dt>

          <code><a href="ejam2shapefile.html">ejam2shapefile()</a></code>

        </dt>
        <dd>DRAFT - export EJAM results as shapefile/geojson/kml for use in ArcPro, EJScreen, etc.</dd>
      </dl></div><div class="section level2">
      <h2 id="specify-counties-etc-">Specify Counties etc.<a class="anchor" aria-label="anchor" href="#specify-counties-etc-"></a></h2>

      <div class="section-desc"><p>Tools to work with Census units and FIPS codes - block groups, tracts, counties, states, and EPA Regions</p></div>


    </div><div class="section level2">

      <h3 id="fips-tools">FIPS tools<a class="anchor" aria-label="anchor" href="#fips-tools"></a></h3>



    </div><div class="section level2">




      <dl><dt>

          <code><a href="name2fips.html">name2fips()</a></code>

        </dt>
        <dd>Get FIPS codes from names of states or counties inverse of fips2name(), 1-to-1 map statename, ST, countyname to FIPS of each</dd>
      </dl><dl><dt>

          <code><a href="fips2name.html">fips2name()</a></code>

        </dt>
        <dd>FIPS - Get county or state names from county or state FIPS codes</dd>
      </dl><dl><dt>

          <code><a href="fipstype.html">fipstype()</a></code>

        </dt>
        <dd>FIPS - Identify what type of Census geography each FIPS code seems to be (block, county, etc.)</dd>
      </dl><dl><dt>

          <code><a href="fips_valid.html">fips_valid()</a></code>

        </dt>
        <dd>check if FIPS code is valid, meaning it is an actual Census FIPS code for a State, County, City/CDP, etc.</dd>
      </dl><dl><dt>

          <code><a href="fips_lead_zero.html">fips_lead_zero()</a></code>

        </dt>
        <dd>FIPS - Add leading zeroes to fips codes if missing, replace with NA if length invalid</dd>
      </dl><dl><dt>

          <code><a href="fips2pop.html">fips2pop()</a></code>

        </dt>
        <dd>Get population counts (ACS EJScreen) by FIPS Utility to aggregate just population count for each FIPS Census unit</dd>
      </dl><dl><dt>

          <code><a href="fips_bgs_in_fips.html">fips_bgs_in_fips()</a></code>

        </dt>
        <dd>FIPS - Get unique blockgroup fips in or containing specified fips of any type</dd>
      </dl><dl><dt>

          <code><a href="fips_from_table.html">fips_from_table()</a></code>

        </dt>
        <dd>FIPS - Read and clean FIPS column from a table, after inferring which col it is</dd>
      </dl><dl><dt>

          <code><a href="fips_place_from_placename.html">fips_place_from_placename()</a></code>

        </dt>
        <dd>search using names of cities, towns, etc. to try to find matches and get FIPS helper used by name2fips()</dd>
      </dl><dl><dt>

          <code><a href="censusplaces.html">censusplaces</a></code>

        </dt>
        <dd>censusplaces (DATA) Census FIPS and other basic info on roughly 40,000 cities/towns/places</dd>
      </dl></div><div class="section level2">

      <h3 id="counties">Counties<a class="anchor" aria-label="anchor" href="#counties"></a></h3>



    </div><div class="section level2">




      <dl><dt>

          <code><a href="counties_as_sites.html">counties_as_sites()</a></code>

        </dt>
        <dd>FIPS - Analyze US Counties as if they were sites, to get EJ indicators summary for each county</dd>
      </dl><dl><dt>

          <code><a href="fips_counties_from_statefips.html">fips_counties_from_statefips()</a></code>

        </dt>
        <dd>FIPS - Get ALL county fips in specified states</dd>
      </dl><dl><dt>

          <code><a href="fips_counties_from_state_abbrev.html">fips_counties_from_state_abbrev()</a></code>

        </dt>
        <dd>FIPS - Get ALL county fips in specified states</dd>
      </dl><dl><dt>

          <code><a href="fips_counties_from_statename.html">fips_counties_from_statename()</a></code>

        </dt>
        <dd>FIPS - Get ALL county fips in specified states</dd>
      </dl><dl><dt>

          <code><a href="fips2countyname.html">fips2countyname()</a></code>

        </dt>
        <dd>FIPS - Get county names from county FIPS codes</dd>
      </dl><dl><dt>

          <code><a href="shapes_counties_from_countyfips.html">shapes_counties_from_countyfips()</a></code>

        </dt>
        <dd>Get Counties boundaries via API, to map them</dd>
      </dl><dl><dt>

          <code><a href="acs_bycounty.html">acs_bycounty()</a></code>

        </dt>
        <dd>download ACS 5year data from Census API, at County resolution</dd>
      </dl><dl><dt>

          <code><a href="plot_bycounty.html">plot_bycounty()</a></code>

        </dt>
        <dd>plot comparison of counties in 1 state, for 1 indicator (variable)</dd>
      </dl></div><div class="section level2">

      <h3 id="states">States<a class="anchor" aria-label="anchor" href="#states"></a></h3>



    </div><div class="section level2">




      <dl><dt>

          <code><a href="states_shapefile.html">states_shapefile</a></code>

        </dt>
        <dd>This is used to figure out which state contains each point (facility/site).</dd>
      </dl><dl><dt>

          <code><a href="states_as_sites.html">states_as_sites()</a></code>

        </dt>
        <dd>FIPS - Analyze US States as if they were sites, to get EJ indicators summary</dd>
      </dl><dl><dt>

          <code><a href="fips_state_from_state_abbrev.html">fips_state_from_state_abbrev()</a></code>

        </dt>
        <dd>FIPS - Get state fips for each state abbrev</dd>
      </dl><dl><dt>

          <code><a href="fips_state_from_statename.html">fips_state_from_statename()</a></code>

        </dt>
        <dd>FIPS - Get state fips for each state name</dd>
      </dl><dl><dt>

          <code><a href="fips_states_in_eparegion.html">fips_states_in_eparegion()</a></code>

        </dt>
        <dd>FIPS - Get state fips for all States in EPA Region(s)</dd>
      </dl><dl><dt>

          <code><a href="fips2statename.html">fips2statename()</a></code>

        </dt>
        <dd>FIPS - Get state names from any type of FIPS codes</dd>
      </dl><dl><dt>

          <code><a href="fips2state_abbrev.html">fips2state_abbrev()</a></code>

        </dt>
        <dd>FIPS - Get state abbreviations from any type of FIPS codes</dd>
      </dl><dl><dt>

          <code><a href="fips2state_fips.html">fips2state_fips()</a></code>

        </dt>
        <dd>FIPS - Get state FIPS codes from any type of FIPS codes</dd>
      </dl><dl><dt>

          <code><a href="state_from_sitetable.html">state_from_sitetable()</a></code>

        </dt>
        <dd>state_from_sitetable - Identify US State that each site is in (given ST, FIPS, or lat/lon)</dd>
      </dl><dl><dt>

          <code><a href="state_from_fips_bybg.html">state_from_fips_bybg()</a></code>

        </dt>
        <dd>Get FIPS of ALL BLOCKGROUPS in the States or Counties specified</dd>
      </dl><dl><dt>

          <code><a href="state_from_latlon.html">state_from_latlon()</a></code>

        </dt>
        <dd>Find what state is where each point is located</dd>
      </dl></div><div class="section level2">

      <h3 id="regions">Regions<a class="anchor" aria-label="anchor" href="#regions"></a></h3>



    </div><div class="section level2">




      <dl><dt>

          <code><a href="fips_st2eparegion.html">fips_st2eparegion()</a></code>

        </dt>
        <dd>FIPS - Get EPA Region number from state FIPS code</dd>
      </dl></div><div class="section level2">
      <h2 id="finding-blocks-distances-and-residents">Finding Blocks, Distances, and Residents<a class="anchor" aria-label="anchor" href="#finding-blocks-distances-and-residents"></a></h2>

      <div class="section-desc"><p>GIS tools calculating which blocks (and residents) are in or near each place (within given radius of point or in FIPS or polygon), and their distances</p></div>


    </div><div class="section level2">




      <dl><dt>

          <code><a href="getblocksnearby.html">getblocksnearby()</a></code>

        </dt>
        <dd>Very fast way to distances to all nearby Census blocks</dd>
      </dl><dl><dt>

          <code><a href="getblocksnearby_from_fips.html">getblocksnearby_from_fips()</a></code>

        </dt>
        <dd>Find all blocks within each of the FIPS codes provided</dd>
      </dl><dl><dt>

          <code><a href="get_blockpoints_in_shape.html">get_blockpoints_in_shape()</a></code>

        </dt>
        <dd>Find all Census blocks in a polygon, using internal point of block</dd>
      </dl><dl><dt>

          <code><a href="getblocks_diagnostics.html">getblocks_diagnostics()</a></code>

        </dt>
        <dd>utility - How many blocks and many other stats about blocks and sites</dd>
      </dl><dl><dt>

          <code><a href="indexblocks.html">indexblocks()</a></code>

        </dt>
        <dd>Create localtree (a quadtree index of all US block centroids) in global environment</dd>
      </dl><dl><dt>

          <code><a href="convert_units.html">convert_units()</a></code>

        </dt>
        <dd>Convert units of distance or area</dd>
      </dl><dl><dt>

          <code><a href="fips2pop.html">fips2pop()</a></code>

        </dt>
        <dd>Get population counts (ACS EJScreen) by FIPS Utility to aggregate just population count for each FIPS Census unit</dd>
      </dl></div><div class="section level2">
      <h2 id="calculating-and-aggregating">Calculating and Aggregating<a class="anchor" aria-label="anchor" href="#calculating-and-aggregating"></a></h2>

      <div class="section-desc"><p>Tools that Calculate and Aggregate Indicators at each Place and Overall, and Report Percentiles</p></div>


    </div><div class="section level2">




      <dl><dt>

          <code><a href="doaggregate.html">doaggregate()</a></code>

        </dt>
        <dd>Summarize environmental and demographic indicators at each location and overall</dd>
      </dl><dl><dt>

          <code><a href="calc_ejam.html">calc_ejam()</a></code>

        </dt>
        <dd>DRAFT utility to use formulas provided as text, to calculate indicators</dd>
      </dl><dl><dt>

          <code><a href="calc_byformula.html">calc_byformula()</a></code>

        </dt>
        <dd>DRAFT utility to use formulas provided as text, to calculate indicators</dd>
      </dl><dl><dt>

          <code><a href="pctile_from_raw_lookup.html">pctile_from_raw_lookup()</a></code>

        </dt>
        <dd>Find approx percentiles in lookup table that is in memory</dd>
      </dl><dl><dt>

          <code><a href="lookup_pctile.html">lookup_pctile()</a></code>

        </dt>
        <dd>Find approx percentiles in lookup table that is in memory</dd>
      </dl><dl><dt>

          <code><a href="high_pctiles_tied_with_min.html">high_pctiles_tied_with_min</a></code>

        </dt>
        <dd>high_pctiles_tied_with_min (DATA) internal data used to handle cases where multiple places are tied for the lowest indicator score</dd>
      </dl></div><div class="section level2">

      <h3 id="datasets-with-indicators-etc-">Datasets with Indicators, etc.<a class="anchor" aria-label="anchor" href="#datasets-with-indicators-etc-"></a></h3>



    </div><div class="section level2">




      <dl><dt>

          <code><a href="blockgroupstats.html">blockgroupstats</a></code>

        </dt>
        <dd>blockgroupstats (DATA) EJScreen demographic and environmental indicators for Census block groups</dd>
      </dl><dl><dt>

          <code><a href="bgej.html">bgej</a></code>

        </dt>
        <dd>bgej (DATA) EJScreen EJ Indexes for Census block groups</dd>
      </dl><dl><dt>

          <code><a href="bgpts.html">bgpts</a></code>

        </dt>
        <dd>bgpts (DATA) lat lon of popwtd center of blockgroup, and count of blocks per block group</dd>
      </dl><dl><dt>

          <code><a href="bg_cenpop2020.html">bg_cenpop2020</a></code>

        </dt>
        <dd>bg_cenpop2020 (DATA) data.table with all US Census 2020 block groups</dd>
      </dl><dl><dt>

          <code><a href="acs_bybg.html">acs_bybg()</a></code>

        </dt>
        <dd>download ACS 5year data from Census API, at block group resolution (slowly for entire US)</dd>
      </dl><dl><dt>

          <code><a href="avg.in.us.html">avg.in.us</a></code>

        </dt>
        <dd>avg.in.us (DATA) national averages of key indicators, for convenience</dd>
      </dl><dl><dt>

          <code><a href="usastats.html">usastats</a></code>

        </dt>
        <dd>usastats (DATA) data.frame of 100 percentiles and means</dd>
      </dl><dl><dt>

          <code><a href="usastats_means.html">usastats_means()</a></code>

        </dt>
        <dd>usastats_means - convenient way to see US MEANS of ENVIRONMENTAL and DEMOGRAPHIC indicators</dd>
      </dl><dl><dt>

          <code><a href="usastats_query.html">usastats_query()</a></code>

        </dt>
        <dd>usastats_query - convenient way to see US mean, pctiles of Envt and Demog indicators in lookup table</dd>
      </dl><dl><dt>

          <code><a href="usastats_queryd.html">usastats_queryd()</a></code>

        </dt>
        <dd>usastats_queryd - convenient way to see US mean, pctiles of DEMOGRAPHIC indicators in lookup table</dd>
      </dl><dl><dt>

          <code><a href="usastats_querye.html">usastats_querye()</a></code>

        </dt>
        <dd>usastats_querye - convenient way to see US mean, pctiles of ENVIRONMENTAL indicators in lookup table</dd>
      </dl><dl><dt>

          <code><a href="stateinfo.html">stateinfo</a></code>

        </dt>
        <dd>stateinfo (DATA) data.frame of state abbreviations and state names (50+DC+PR; not AS, GU, MP, VI, UM)</dd>
      </dl><dl><dt>

          <code><a href="stateinfo2.html">stateinfo2</a></code>

        </dt>
        <dd>stateinfo2 (DATA) data.frame of state abbreviations and state names (50+DC+PR; not AS, GU, MP, VI, UM)</dd>
      </dl><dl><dt>

          <code><a href="statestats.html">statestats</a></code>

        </dt>
        <dd>statestats (DATA) data.frame of 100 percentiles and means for each US State and PR and DC.</dd>
      </dl><dl><dt>

          <code><a href="statestats_means.html">statestats_means()</a></code>

        </dt>
        <dd>statestats_means - convenient way to see STATE MEANS of ENVIRONMENTAL and DEMOGRAPHIC indicators</dd>
      </dl><dl><dt>

          <code><a href="statestats_query.html">statestats_query()</a></code>

        </dt>
        <dd>statestats_query - convenient way to see mean, pctiles of Env or Demog indicators from lookup table</dd>
      </dl><dl><dt>

          <code><a href="statestats_queryd.html">statestats_queryd()</a></code>

        </dt>
        <dd>statestats_queryd - convenient way to see mean, pctiles of DEMOG indicators from lookup table</dd>
      </dl><dl><dt>

          <code><a href="statestats_querye.html">statestats_querye()</a></code>

        </dt>
        <dd>statestats_querye - convenient way to see mean, pctiles of ENVIRONMENTAL indicators from lookup table</dd>
      </dl></div><div class="section level2">

      <h3 id="comparing-distances-multiple-radius-values">Comparing Distances / Multiple Radius Values<a class="anchor" aria-label="anchor" href="#comparing-distances-multiple-radius-values"></a></h3>



    </div><div class="section level2">




      <dl><dt>

          <code><a href="ejamit_compare_distances.html">ejamit_compare_distances()</a></code>

        </dt>
        <dd>Compare EJAM results overall for more than one radius Run ejamit() once per radius, get a summary table with a row per radius</dd>
      </dl><dl><dt>

          <code><a href="ejamit_compare_distances_fulloutput.html">ejamit_compare_distances_fulloutput()</a></code>

        </dt>
        <dd>Compare ejamit() full results for more than one radius Helper used by ejamit_compare_distances() to run ejamit() once per radius, get FULL ejamit() output list per radius</dd>
      </dl><dl><dt>

          <code><a href="ejamit_compare_distances2plot.html">ejamit_compare_distances2plot()</a></code>

        </dt>
        <dd>plot indicators as a function of distance from point(s) plot results of ejamit_compare_distances()</dd>
      </dl><dl><dt>

          <code><a href="distance_by_group_by_site.html">distance_by_group_by_site()</a></code>

        </dt>
        <dd>Ratios at each site, of avg dist of group / avg dist of everyone else near site</dd>
      </dl><dl><dt>

          <code><a href="distance_by_group_plot.html">distance_by_group_plot()</a></code>

        </dt>
        <dd>Each groups distribution of distances</dd>
      </dl><dl><dt>

          <code><a href="distance_cdf_by_group_plot.html">distance_cdf_by_group_plot()</a></code>

        </dt>
        <dd>What percentage of this demographic group's population lives less than X miles from a site?</dd>
      </dl><dl><dt>

          <code><a href="distance_mean_by_group.html">distance_mean_by_group()</a></code>

        </dt>
        <dd>Avg distance of each demog group (of multiple groups) - Table or Plot</dd>
      </dl><dl><dt>

          <code><a href="distance_by_group.html">distance_by_group()</a></code>

        </dt>
        <dd>See plot_distance_mean_by_group()</dd>
      </dl><dl><dt>

          <code><a href="distance_trends.html">distance_trends()</a></code>

        </dt>
        <dd>Which indicators fall most as proximity does? (i.e., are higher if closer to site) Which variables have strongest trend with distance based on slope of linear fit</dd>
      </dl></div><div class="section level2">

      <h3 id="calculating-summary-stats-etc-">Calculating Summary Stats, etc.<a class="anchor" aria-label="anchor" href="#calculating-summary-stats-etc-"></a></h3>



    </div><div class="section level2">




      <dl><dt>

          <code><a href="batch.summarize.html">batch.summarize()</a></code>

        </dt>
        <dd>Core function that calculates summary stats across all sites and nearby people for EJScreen batch analysis</dd>
      </dl><dl><dt>

          <code><a href="count_sites_with_n_high_scores.html">count_sites_with_n_high_scores()</a></code>

        </dt>
        <dd>Answers questions like how many sites have demog. indicators &gt;2x the state avg?</dd>
      </dl><dl><dt>

          <code><a href="colcounter_summary_all.html">colcounter_summary_all()</a></code>

        </dt>
        <dd>Summarize count (and percent) of rows with exactly (and at least) N cols &gt;= various thresholds</dd>
      </dl><dl><dt>

          <code><a href="popshare_at_top_n.html">popshare_at_top_n()</a></code>

        </dt>
        <dd>top N sites account for what percent of residents?</dd>
      </dl><dl><dt>

          <code><a href="popshare_at_top_x_pct.html">popshare_at_top_x_pct()</a></code>

        </dt>
        <dd>top X percent of sites account for what percent of residents?</dd>
      </dl><dl><dt>

          <code><a href="popshare_p_lives_at_what_n.html">popshare_p_lives_at_what_n()</a></code>

        </dt>
        <dd>how many sites account for P percent of residents?</dd>
      </dl><dl><dt>

          <code><a href="popshare_p_lives_at_what_pct.html">popshare_p_lives_at_what_pct()</a></code>

        </dt>
        <dd>what percent of sites account for P percent of residents?</dd>
      </dl><dl><dt>

          <code><a href="distance_trends.html">distance_trends()</a></code>

        </dt>
        <dd>Which indicators fall most as proximity does? (i.e., are higher if closer to site) Which variables have strongest trend with distance based on slope of linear fit</dd>
      </dl></div><div class="section level2">
      <h2 id="viewing-results">Viewing Results<a class="anchor" aria-label="anchor" href="#viewing-results"></a></h2>




    </div><div class="section level2">

      <h3 id="maps-of-points">Maps of Points<a class="anchor" aria-label="anchor" href="#maps-of-points"></a></h3>



    </div><div class="section level2">




      <dl><dt>

          <code><a href="ejam2map.html">ejam2map()</a></code>

        </dt>
        <dd>Show EJAM results as a map of points</dd>
      </dl><dl><dt>

          <code><a href="ejam2shapefile.html">ejam2shapefile()</a></code>

        </dt>
        <dd>DRAFT - export EJAM results as shapefile/geojson/kml for use in ArcPro, EJScreen, etc.</dd>
      </dl><dl><dt>

          <code><a href="mapfast.html">mapfast()</a></code>

        </dt>
        <dd>Map - points - Create leaflet html widget map of points using table with lat lon</dd>
      </dl><dl><dt>

          <code><a href="mapfastej.html">mapfastej()</a></code>

        </dt>
        <dd>Map - points - Create leaflet html widget map of points using EJAM results with EJ stats</dd>
      </dl><dl><dt>

          <code><a href="map2browser.html">map2browser()</a></code>

        </dt>
        <dd>quick way to open a map html widget in local browser (saved as tempfile you can share)</dd>
      </dl><dl><dt>

          <code><a href="map_google.html">map_google()</a></code>

        </dt>
        <dd>Map - Open Google Maps in browser</dd>
      </dl><dl><dt>

          <code><a href="mapfast_gg.html">mapfast_gg()</a></code>

        </dt>
        <dd>Map - points - ggplot2 map of points in the USA - very basic map</dd>
      </dl><dl><dt>

          <code><a href="plotblocksnearby.html">plotblocksnearby()</a></code>

        </dt>
        <dd>plotblocksnearby - Map view of Census blocks (their centroids) near one or more sites Utility to quickly view one or more facility points on map with the blocks found nearby</dd>
      </dl></div><div class="section level2">

      <h3 id="maps-of-shapes-polygons-">Maps of Shapes (Polygons)<a class="anchor" aria-label="anchor" href="#maps-of-shapes-polygons-"></a></h3>



    </div><div class="section level2">




      <dl><dt>

          <code><a href="mapfastej_counties.html">mapfastej_counties()</a></code>

        </dt>
        <dd>Map - County polygons / boundaries - Create leaflet or static map of EJ results</dd>
      </dl><dl><dt>

          <code><a href="map_counties_in_state.html">map_counties_in_state()</a></code>

        </dt>
        <dd>Basic map of county outlines within specified state(s) Not used by shiny app</dd>
      </dl><dl><dt>

          <code><a href="map_shapes_leaflet.html">map_shapes_leaflet()</a></code>

        </dt>
        <dd>Map - polygons - Create leaflet map from shapefile, in shiny app</dd>
      </dl><dl><dt>

          <code><a href="map_shapes_mapview.html">map_shapes_mapview()</a></code>

        </dt>
        <dd>Map - polygons - Use mapview package if available</dd>
      </dl><dl><dt>

          <code><a href="map_shapes_plot.html">map_shapes_plot()</a></code>

        </dt>
        <dd>Map - polygons - Use base R plot() to map polygons</dd>
      </dl><dl><dt>

          <code><a href="map_blockgroups_over_blocks.html">map_blockgroups_over_blocks()</a></code>

        </dt>
        <dd>Map - Blockgroup polygons / boundaries near 1 site - Create leaflet map</dd>
      </dl><dl><dt>

          <code><a href="shapes_blockgroups_from_bgfips.html">shapes_blockgroups_from_bgfips()</a></code>

        </dt>
        <dd>Get blockgroups boundaries, via API, to map them</dd>
      </dl></div><div class="section level2">

      <h3 id="map-popups">Map Popups<a class="anchor" aria-label="anchor" href="#map-popups"></a></h3>



    </div><div class="section level2">




      <dl><dt>

          <code><a href="popup_from_any.html">popup_from_any()</a></code>

        </dt>
        <dd>Map popups - Simple map popup from a data.table or data.frame, one point per row</dd>
      </dl></div><div class="section level2">

      <h3 id="plots">Plots<a class="anchor" aria-label="anchor" href="#plots"></a></h3>



    </div><div class="section level2">




      <dl><dt>

          <code><a href="ejam2barplot.html">ejam2barplot()</a></code>

        </dt>
        <dd>Barplot of ratios of demographic (or other) scores to averages - simpler syntax</dd>
      </dl><dl><dt>

          <code><a href="ejam2barplot_sites.html">ejam2barplot_sites()</a></code>

        </dt>
        <dd>Barplot comparing sites on 1 indicator, based on full output of ejamit() easy high-level function for getting a quick look at top few sites</dd>
      </dl><dl><dt>

          <code><a href="plot_barplot_sites.html">plot_barplot_sites()</a></code>

        </dt>
        <dd>barplot comparing sites on 1 indicator, based on table of site data a quick way to plot a calculated variable at each site, which ejam2barplot_sites() can't</dd>
      </dl><dl><dt>

          <code><a href="plot_barplot_ratios_ez.html">plot_barplot_ratios_ez()</a></code>

        </dt>
        <dd>Same as ejam2barplot() but ejam2barplot() handles a sitenumber parameter</dd>
      </dl><dl><dt>

          <code><a href="plot_barplot_ratios.html">plot_barplot_ratios()</a></code>

        </dt>
        <dd>Barplot of ratios of demographic (or other) scores to averages (or other references)</dd>
      </dl><dl><dt>

          <code><a href="plot_ridgeline_ratios_ez.html">plot_ridgeline_ratios_ez()</a></code>

        </dt>
        <dd>Make ridgeline plot of ratios of demographic score to its average</dd>
      </dl><dl><dt>

          <code><a href="plot_ridgeline_ratios.html">plot_ridgeline_ratios()</a></code>

        </dt>
        <dd>Make ridgeline plot of ratios of demographic score to its average</dd>
      </dl><dl><dt>

          <code><a href="plot_boxplot_pctiles.html">plot_boxplot_pctiles()</a></code>

        </dt>
        <dd>Boxplots comparing a few indicators showing how each varies across sites Visualize mean median etc. for each of several percentile indicators</dd>
      </dl><dl><dt>

          <code><a href="boxplots_ratios.html">boxplots_ratios()</a></code>

        </dt>
        <dd>boxplots of demographics across sites as ratios to US means</dd>
      </dl><dl><dt>

          <code><a href="ejam2barplot_sitegroups.html">ejam2barplot_sitegroups()</a></code>

        </dt>
        <dd>Barplot comparing groups of sites on 1 indicator, for output of ejamit_compare_types_of_places() easy high-level function for getting a quick look at top few groups of sites</dd>
      </dl><dl><dt>

          <code><a href="plot_barplot_sitegroups.html">plot_barplot_sitegroups()</a></code>

        </dt>
        <dd>barplot comparing groups of sites on 1 indicator, based on table of grouped site data</dd>
      </dl><dl><dt>

          <code><a href="ejam2barplot_distances.html">ejam2barplot_distances()</a></code>

        </dt>
        <dd>Barplot comparing ejamit_compare_distances() results for more than one radius</dd>
      </dl><dl><dt>

          <code><a href="ejamit_compare_distances2plot.html">ejamit_compare_distances2plot()</a></code>

        </dt>
        <dd>plot indicators as a function of distance from point(s) plot results of ejamit_compare_distances()</dd>
      </dl><dl><dt>

          <code><a href="plot_demogshare_by_distance.html">plot_demogshare_by_distance()</a></code>

        </dt>
        <dd>plot_demogshare_by_distance - work in progress</dd>
      </dl><dl><dt>

          <code><a href="plot_distance_by_pctd.html">plot_distance_by_pctd()</a></code>

        </dt>
        <dd>What percentage of this demographic group's population lives less than X miles from a site? — *** DRAFT - NEED TO RECHECK CALCULATIONS</dd>
      </dl><dl><dt>

          <code><a href="plot_distance_by_group.html">plot_distance_by_group()</a></code>

        </dt>
        <dd>Avg distance of each demog group (of multiple groups) - Table or Plot</dd>
      </dl><dl><dt>

          <code><a href="plot_distance_cdf_by_group.html">plot_distance_cdf_by_group()</a></code>

        </dt>
        <dd>alias for distance_by_group_plot</dd>
      </dl><dl><dt>

          <code><a href="plot_distance_mean_by_group.html">plot_distance_mean_by_group()</a></code>

        </dt>
        <dd>Barplot of Average Proximity, by Group</dd>
      </dl><dl><dt>

          <code><a href="plot_lorenz_distance_by_dcount.html">plot_lorenz_distance_by_dcount()</a></code>

        </dt>
        <dd>lorenz plot bybg_people (cumulative share of x vs cum share of y) - DRAFT/EXPERIMENTAL COUNT OF SITES (or PEOPLE?) BY BIN</dd>
      </dl><dl><dt>

          <code><a href="plot_lorenz_popcount_by_site.html">plot_lorenz_popcount_by_site()</a></code>

        </dt>
        <dd>lorenz plot bysite (cumulative share of x vs cum share of y) - DRAFT/EXPERIMENTAL COMPARES TWO subsets OF SITES (or people??)</dd>
      </dl></div><div class="section level2">

      <h3 id="tables">Tables<a class="anchor" aria-label="anchor" href="#tables"></a></h3>



    </div><div class="section level2">




      <dl><dt>

          <code><a href="ejam2report.html">ejam2report()</a></code>

        </dt>
        <dd>View HTML Report on EJAM Results (Overall or at 1 Site)</dd>
      </dl><dl><dt>

          <code><a href="ejam2excel.html">ejam2excel()</a></code>

        </dt>
        <dd>Save EJAM results in a spreadsheet</dd>
      </dl><dl><dt>

          <code><a href="ejam2ratios.html">ejam2ratios()</a></code>

        </dt>
        <dd>Quick view of summary stats by type of stat, but lacks rounding specific to each type, etc.</dd>
      </dl><dl><dt>

          <code><a href="ejam2means.html">ejam2means()</a></code>

        </dt>
        <dd>ejam2means - quick look at averages, via ejamit() results</dd>
      </dl><dl><dt>

          <code><a href="ejam2tableviewer.html">ejam2tableviewer()</a></code>

        </dt>
        <dd>See ejamit()$results_bysite in interactive table in RStudio viewer pane</dd>
      </dl><dl><dt>

          <code><a href="ejam2table_tall.html">ejam2table_tall()</a></code>

        </dt>
        <dd>Simple quick look at results of ejamit() in RStudio console</dd>
      </dl><dl><dt>

          <code><a href="ejscreenit_see_table.html">ejscreenit_see_table()</a></code>

        </dt>
        <dd>Utility to get quick view in RStudio viewer of datatable of ejscreenapi results</dd>
      </dl><dl><dt>

          <code><a href="table_ratios_from_ejamit.html">table_ratios_from_ejamit()</a></code>

        </dt>
        <dd>Quick view of summary stats by type of stat, but lacks rounding specific to each type, etc.</dd>
      </dl><dl><dt>

          <code><a href="table_gt_from_ejamit.html">table_gt_from_ejamit()</a></code>

        </dt>
        <dd>Create a gt-format table of results from EJAM</dd>
      </dl><dl><dt>

          <code><a href="table_gt_from_ejamit_1site.html">table_gt_from_ejamit_1site()</a></code>

        </dt>
        <dd>Create a formatted table of results for 1 site from EJAM</dd>
      </dl><dl><dt>

          <code><a href="table_gt_from_ejamit_overall.html">table_gt_from_ejamit_overall()</a></code>

        </dt>
        <dd>Create a formatted table of results from EJAM overall summary stats</dd>
      </dl></div><div class="section level2">
      <h2 id="test-data">Test Data<a class="anchor" aria-label="anchor" href="#test-data"></a></h2>




    </div><div class="section level2">

      <h3 id="examples-of-inputs-points-etc-">Examples of Inputs (Points, etc.)<a class="anchor" aria-label="anchor" href="#examples-of-inputs-points-etc-"></a></h3>



    </div><div class="section level2">




      <dl><dt>

          <code><a href="testshapes_2.html">testshapes_2</a></code>

        </dt>
        <dd>testshapes_2 dataset</dd>
      </dl><dl><dt>

          <code><a href="testpoints_n.html">testpoints_n()</a></code>

        </dt>
        <dd>Random points in USA - average resident, facility, BG, block, or square mile</dd>
      </dl><dl><dt>

          <code><a href="testpoints_5.html">testpoints_5</a></code>

        </dt>
        <dd>test points data.frame with columns sitenumber, lat, lon</dd>
      </dl><dl><dt>

          <code><a href="testpoints_10.html">testpoints_10</a></code>

        </dt>
        <dd>test points data.frame with columns sitenumber, lat, lon</dd>
      </dl><dl><dt>

          <code><a href="testpoints_50.html">testpoints_50</a></code>

        </dt>
        <dd>test points data.frame with columns sitenumber, lat, lon</dd>
      </dl><dl><dt>

          <code><a href="testpoints_100.html">testpoints_100</a></code>

        </dt>
        <dd>test points data.frame with columns sitenumber, lat, lon</dd>
      </dl><dl><dt>

          <code><a href="testpoints_500.html">testpoints_500</a></code>

        </dt>
        <dd>test points data.frame with columns sitenumber, lat, lon</dd>
      </dl><dl><dt>

          <code><a href="testpoints_1000.html">testpoints_1000</a></code>

        </dt>
        <dd>test points data.frame with columns sitenumber, lat, lon</dd>
      </dl><dl><dt>

          <code><a href="testpoints_10000.html">testpoints_10000</a></code>

        </dt>
        <dd>test points data.frame with columns sitenumber, lat, lon</dd>
      </dl><dl><dt>

          <code><a href="test_address_table.html">test_address_table</a></code>

        </dt>
        <dd>datasets for trying address-related functions</dd>
      </dl><dl><dt>

          <code><a href="testids_registry_id.html">testids_registry_id</a></code>

        </dt>
        <dd>test data, vector of EPA FRS Registry ID numbers</dd>
      </dl><dl><dt>

          <code><a href="testids_program_sys_id.html">testids_program_sys_id</a></code>

        </dt>
        <dd>test data, string vector of EPA FRS Program System ID numbers</dd>
      </dl><dl><dt>

          <code><a href="default_points_shown_at_startup.html">default_points_shown_at_startup</a></code>

        </dt>
        <dd>Default Points Shown at Startup</dd>
      </dl></div><div class="section level2">

      <h3 id="examples-of-outputs">Examples of Outputs<a class="anchor" aria-label="anchor" href="#examples-of-outputs"></a></h3>



    </div><div class="section level2">




      <dl><dt>

          <code><a href="testoutput_ejamit_1000pts_1miles.html">testoutput_ejamit_1000pts_1miles</a></code>

        </dt>
        <dd>test output of ejamit()</dd>
      </dl><dl><dt>

          <code><a href="testoutput_ejamit_100pts_1miles.html">testoutput_ejamit_100pts_1miles</a></code>

        </dt>
        <dd>test output of ejamit()</dd>
      </dl><dl><dt>

          <code><a href="testoutput_ejamit_10pts_1miles.html">testoutput_ejamit_10pts_1miles</a></code>

        </dt>
        <dd>test output of ejamit()</dd>
      </dl><dl><dt>

          <code><a href="testoutput_getblocksnearby_1000pts_1miles.html">testoutput_getblocksnearby_1000pts_1miles</a></code>

        </dt>
        <dd>test output of getblocksnearby(), and is an input to doaggregate()</dd>
      </dl><dl><dt>

          <code><a href="testoutput_getblocksnearby_100pts_1miles.html">testoutput_getblocksnearby_100pts_1miles</a></code>

        </dt>
        <dd>test output of getblocksnearby(), and is an input to doaggregate()</dd>
      </dl><dl><dt>

          <code><a href="testoutput_getblocksnearby_10pts_1miles.html">testoutput_getblocksnearby_10pts_1miles</a></code>

        </dt>
        <dd>test output of getblocksnearby(), and is an input to doaggregate()</dd>
      </dl><dl><dt>

          <code><a href="testoutput_doaggregate_1000pts_1miles.html">testoutput_doaggregate_1000pts_1miles</a></code>

        </dt>
        <dd>test output of doaggregate()</dd>
      </dl><dl><dt>

          <code><a href="testoutput_doaggregate_100pts_1miles.html">testoutput_doaggregate_100pts_1miles</a></code>

        </dt>
        <dd>test output of doaggregate()</dd>
      </dl><dl><dt>

          <code><a href="testoutput_doaggregate_10pts_1miles.html">testoutput_doaggregate_10pts_1miles</a></code>

        </dt>
        <dd>test output of doaggregate()</dd>
      </dl><dl><dt>

          <code><a href="testoutput_ejscreenit_5.html">testoutput_ejscreenit_5</a></code>

        </dt>
        <dd>test data examples of output from <code><a href="https://usepa.github.io/EJAM/reference/ejscreenit.html">ejscreenit()</a></code> using testpoints_5, radius = 1</dd>
      </dl><dl><dt>

          <code><a href="testoutput_ejscreenit_50.html">testoutput_ejscreenit_50</a></code>

        </dt>
        <dd>test data examples of output from <code><a href="https://usepa.github.io/EJAM/reference/ejscreenit.html">ejscreenit()</a></code> using testpoints_50, radius = 1</dd>
      </dl><dl><dt>

          <code><a href="testoutput_ejscreenit_500.html">testoutput_ejscreenit_500</a></code>

        </dt>
        <dd>test data examples of output from <code><a href="https://usepa.github.io/EJAM/reference/ejscreenit.html">ejscreenit()</a></code> using testpoints_500, radius = 1</dd>
      </dl><dl><dt>

          <code><a href="testoutput_ejscreenit_10pts_1miles.html">testoutput_ejscreenit_10pts_1miles</a></code>

        </dt>
        <dd>test output of ejscreenit(), using the EJScreen API</dd>
      </dl></div><div class="section level2">
      <h2 id="utilities-for-finding-url-or-api-info">Utilities for finding URL or API info<a class="anchor" aria-label="anchor" href="#utilities-for-finding-url-or-api-info"></a></h2>




    </div><div class="section level2">




      <dl><dt>

          <code><a href="url_countyhealthrankings.html">url_countyhealthrankings()</a></code>

        </dt>
        <dd>URL functions - Get URLs of useful report(s) on Counties from countyhealthrankings.org</dd>
      </dl><dl><dt>

          <code><a href="url_echo_facility_webpage.html">url_echo_facility_webpage()</a></code>

        </dt>
        <dd>Get URLs of ECHO reports</dd>
      </dl><dl><dt>

          <code><a href="url_ejscreenmap.html">url_ejscreenmap()</a></code>

        </dt>
        <dd>Get URL(s) for EJScreen map centered at given point(s)</dd>
      </dl><dl><dt>

          <code><a href="url_ejscreen_report.html">url_ejscreen_report()</a></code>

        </dt>
        <dd>Get URLs of EJScreen reports</dd>
      </dl><dl><dt>

          <code><a href="url_enviromapper.html">url_enviromapper()</a></code>

        </dt>
        <dd>Get URLs of EnviroMapper reports</dd>
      </dl><dl><dt>

          <code><a href="url_frs_report.html">url_frs_report()</a></code>

        </dt>
        <dd>Get URLs of FRS reports</dd>
      </dl><dl><dt>

          <code><a href="url_naics.com.html">url_naics.com()</a></code>

        </dt>
        <dd>URL functions - url_naics.com - Get URL for page with info about industry sectors by text query term</dd>
      </dl></div><div class="section level2">
      <h2 id="utilities-handling-variable-names">Utilities handling variable names<a class="anchor" aria-label="anchor" href="#utilities-handling-variable-names"></a></h2>

      <div class="section-desc"><p>Utilities to handle variable names, indicator metadata, formulas, etc.</p></div>


    </div><div class="section level2">




      <dl><dt>

          <code><a href="fixcolnames.html">fixcolnames()</a></code>

        </dt>
        <dd>helper function to rename variables that are colnames of data.frame</dd>
      </dl><dl><dt>

          <code><a href="names_d.html">names_d</a></code>

        </dt>
        <dd>names_d (DATA) list of demographic indicator names</dd>
      </dl><dl><dt>

          <code><a href="names_e.html">names_e</a></code>

        </dt>
        <dd>names_e (DATA) list of environmental indicator names</dd>
      </dl><dl><dt>

          <code><a href="map_headernames.html">map_headernames</a></code>

        </dt>
        <dd>map_headernames provides metadata about all indicators in EJAM/EJScreen</dd>
      </dl></div><div class="section level2">
      <h2 id="utilities-misc-">Utilities / Misc.<a class="anchor" aria-label="anchor" href="#utilities-misc-"></a></h2>




    </div><div class="section level2">




      <dl><dt>

          <code><a href="run_app.html">run_app()</a></code>

        </dt>
        <dd>Launch the Shiny Application in RStudio</dd>
      </dl><dl><dt>

          <code><a href="testdata.html">testdata()</a></code>

        </dt>
        <dd>utility to show dir_tree of available files in testdata folders See list of samples of input files to try in EJAM, and output examples from EJAM functions</dd>
      </dl><dl><dt>

          <code><a href="testdatafolder.html">testdatafolder()</a></code>

        </dt>
        <dd>utility to show path to testdata folders see folder that has samples of input files to try in EJAM, and output examples from EJAM functions</dd>
      </dl><dl><dt>

          <code><a href="dataload_from_pins.html">dataload_from_pins()</a></code>

        </dt>
        <dd>Utility to download / load datasets from pin board</dd>
      </dl><dl><dt>

          <code><a href="dataload_from_urlpins.html">dataload_from_urlpins()</a></code>

        </dt>
        <dd>Utility to download / load datasets from pin board in pkgdown github pages of public repo</dd>
      </dl><dl><dt>

          <code><a href="dataload_from_local.html">dataload_from_local()</a></code>

        </dt>
        <dd>Load datasets from local disk folder</dd>
      </dl><dl><dt>

          <code><a href="dataload_from_aws.html">dataload_from_aws()</a></code>

        </dt>
        <dd>Utility to load datasets from AWS DMAP Data Commons, into memory</dd>
      </dl></div><div class="section level2">
      <h2 id="ejscreen-api">EJScreen API<a class="anchor" aria-label="anchor" href="#ejscreen-api"></a></h2>

      <div class="section-desc"><p>EJAM-EJScreen and using the EJScreen API</p></div>


    </div><div class="section level2">




      <dl><dt>

          <code><a href="ejscreenit_for_ejam.html">ejscreenit_for_ejam()</a></code>

        </dt>
        <dd>Get EJScreen results directly from EJScreen servers via their API</dd>
      </dl><dl><dt>

          <code><a href="ejscreenit.html">ejscreenit()</a></code>

        </dt>
        <dd>Get EJScreen results near each site, compiled as a table, with map and plot</dd>
      </dl><dl><dt>

          <code><a href="app_run_EJAMejscreenapi.html">app_run_EJAMejscreenapi()</a></code>

        </dt>
        <dd>Launch EJAM ejscreenapi web app in RStudio</dd>
      </dl></div>
  </main><aside class="col-md-3"><nav id="toc" aria-label="Table of contents"><h2>On this page</h2>
    </nav></aside></div>


    <footer><div class="pkgdown-footer-left">
  <p>US EPA 2025</p>
</div>

<div class="pkgdown-footer-right">
  <p>EJAM Version 2.32.0</p>
</div>

    </footer></div>





  </body></html>

